﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompositePattern.GeneralDemo
{
    /// <summary>
    /// 抽象構件
    /// </summary>
    public abstract class Component
    {
        /// <summary>
        /// 個體和整體都具有的共享
        /// </summary>
        public virtual string doSomething() {
            return "tree";
        }
    }
}
